#ifndef _FATAL_H_
#define _FATAL_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>


#define fatal(fmt, arg...) \
    do { \
        printf("fatal: " fmt "\n", ## arg); \
        exit(1); \
    } while(0)


#define CLEAR(x)    (memset(&(x), 0, sizeof(x)))

#endif
